import {createRouter, createWebHashHistory} from "vue-router";

import graph from "@/components/graph.vue";


const router = createRouter({
    history: createWebHashHistory(),
    routes: [{
        path: "/graph",
        component: graph,
        meta: {title: '效果展示'}
    }]
});

router.beforeEach((to, from, next) => {
    if (to.meta.title) {
        document.title = to.meta.title
    }
    next()
})

export default router;

